package com.baizhi.springbootshiro.service.impl;

import com.baizhi.springbootshiro.entity.Role;
import com.baizhi.springbootshiro.entity.User;
import com.baizhi.springbootshiro.mapper.RoleMapper;
import com.baizhi.springbootshiro.service.RoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author chenzy
 * @since 2020-10-08
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

    @Override
    public User getRoles(String uName) {
        User user = baseMapper.getRoles(uName);
        return user;
    }
}
